* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f3f3f3;
}

a {
  text-decoration: none;
  color: inherit;
}

.heading-container {
  background-color: #4747cf;
  color: #ffffff;
  padding: 0.5em 0;
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 5px 30px 0 rgba(2, 0, 31, 0.2);
  z-index: 1;
}

.heading-container h4 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.options-container {
  margin: 6em auto 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  text-align: center;
}

.option {
  background-color: #4747cf;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.8em 2em;
  border-radius: 10px;
  text-transform: capitalize;
  font-weight: 500;
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option:hover {
  background-color: #3b3bb6;
  transform: translateY(-2px);
}

.dark-toggle {
  margin: 20px auto;
  text-align: center;
}

.dark-toggle input {
  display: none;
}

.dark-toggle label {
  width: 84px;
  height: 50px;
  background: #f3f3f3;
  border-radius: 999px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.dark-toggle input:checked + label {
  background: #444;
}

.dark-toggle .circle {
  width: 42px;
  height: 46px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  overflow: hidden;
}

.dark-toggle svg {
  width: 35px;
  height: 38px;
  position: absolute;
  transition: 0.4s;
}

.sun {
  color: #ffd600;
  opacity: 1;
}

.moon {
  color: #555;
  transform: translateY(-100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle {
  transform: translateX(36px);
  background: #2c2c2f;
}

.dark-toggle input:checked + label .circle .sun {
  transform: translateY(100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle .moon {
  transform: translateY(0);
  opacity: 1;
}

body.dark-mode {
  background: #1a1a1a;
  color: white;
}

body.dark-mode .card {
  background: #2c2c2f;
  color: white;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  width: 90%;
  max-width: 1200px;
  margin: 3em auto 2em auto;
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
}

.news-image-container {
  height: 200px;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.2em;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c003e;
  margin-bottom: 0.5em;
}

.news-description {
  font-size: 14px;
  color: #555;
  text-align: justify;
  margin-bottom: 1em;
}

.view-button {
  display: inline-block;
  background-color: #cb202d;
  color: #ffffff;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
.view-button:hover {
  background-color: #a51822;
}

/* RUNNING TEXT PROMO */
.global-running-text {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;

  margin-top: 20px;
  margin-bottom: 10px;
}

.running-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: runningText 19s linear infinite;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #ffffff;
}

.running-track a {
  color: #00f7ff;
  font-weight: bold;
  text-decoration: none;
}

.running-track a:hover {
  text-decoration: underline;
}

@keyframes runningText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.footer {
  text-align: center;
  padding: 2em 0;
  font-size: 13px;
  color: #777;
  margin-top: 3em;
}



@media (max-width: 768px) {
  .heading-container {
    padding: 0.3em 0 0.5em 0;
  }

  .heading-container h4 {
    font-size: 19px;
    margin-bottom: 0.2em;
  }

  .music-popup-button {
    font-size: 9.5px;
    padding: 3px 8px;
    margin-top: 0.2em;
  }
  .options-container {
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    margin-top: 7em;
  }

  .option {
    padding: 1em 2em;
    font-size: 1rem;
    border-radius: 0.8em;
    background-color: #4747cf;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
  }

  .option:hover {
    transform: scale(1.05);
  }

  .news-container {
    margin-top: 3em;
  }

  .news-image-container {
    height: 180px;
  }

  .news-title {
    font-size: 15px;
  }

  .news-description {
    font-size: 13px;
  }

  .view-button {
    font-size: 13px;
    padding: 0.3em 0.7em;
  }

  .footer {
    font-size: 11px;
  }
}
